<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>gsap.Testplugins</title>
    <script src="https://cdn.jsdelivr.net/npm/gsap@3.13.0/dist/gsap.min.js"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.6.0/TextPlugin.min.js"></script>
    <style>
        /*  .logo {
            width: 300px;
            height: 300px;
            background: skyblue;
            border-radius: 30px;
        }  */
      
    </style>
</head>

<body>
    <div class="logo" id="logo">
        H1TestTestPlugins
    </div>

    <script>
        const logo = document.querySelector('#logo');
        gsap.registerPlugin(TextPlugin)//作为一个插件使用必须要先引入
        gsap.fromTo(logo, {
            ease: 'power1.inOut',
            opacity:0,
            y:0
        }, {
            ease: 'power1.inOut',
            opacity:1,
            y:10
        })
    </script>
</body>

</html>